
package com.limoilux.cobolux.core;

public class ProblemMarker
{
	private static final int DEFAULT_LINE_NUMBER = 1;

	public static final int SEVERITY_INFO = 0;
	public static final int SEVERITY_WARNING = 1;
	public static final int SEVERITY_ERROR = 2;

	private String message = null;
	private int lineNumber = 0;
	private int severity = 0;

	public ProblemMarker(String message, int severity, int lineNumber)
	{
		this.message = message;
		this.severity = severity;
		this.lineNumber = lineNumber;
	}

	public ProblemMarker(String message, int severity)
	{
		this(message, severity, ProblemMarker.DEFAULT_LINE_NUMBER);
	}

	public int getLineNumber()
	{
		return this.lineNumber;
	}

	public int getSeverity()
	{
		return this.severity;
	}

	public String getMessage()
	{
		return this.message;
	}
}
